package com.jacky.androidutils.domain;


import com.jacky.androidutils.test.DBHelper;
import com.jacky.androidutils.database.dao.annotation.Column;
import com.jacky.androidutils.database.dao.annotation.ID;
import com.jacky.androidutils.database.dao.annotation.TableName;

@TableName(DBHelper.TABLE_NEWS_NAME)
public class News {
    //主键： 明确，值的获取
    //主键通常伴随自增长
    @ID(autoincrement = true, idname="ID")
    @Column(DBHelper.TABLE_ID)
    private int id;
    @Column(DBHelper.TABLE_NEWS_TITLE)
    private String title;
    @Column(DBHelper.TABLE_NEWS_SUMMARY)
    private String summary;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }


}
